import psycopg2
dbInfo ="dbname=%s user=%s password=%s host=%s port=%s" % ("st", "postgres","wd1111", "127.0.0.1", 5432)

def initDb():
    con=psycopg2.connect(dbInfo)
    return con